package com.mass.waybill.voucher.dao;

import com.mass.waybill.voucher.model.WbVoucher;
import com.mass.waybill.voucher.model.WbVoucherExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: ZSX
 * @Description: 收款单
 */
@Mapper
public interface WbVoucherMapper {

    /**
     * 根据订单编号查询订单明细
     *
     * @param orderCode
     * @return
     */
    List<WbVoucher> findByOrderCode(String orderCode);

    /**
     * @mbg.generated
     */
    long countByExample(WbVoucherExample example);

    /**
     * @mbg.generated
     */
    int deleteByExample(WbVoucherExample example);

    /**
     * @mbg.generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * @mbg.generated
     */
    int insert(WbVoucher record);

    /**
     * @mbg.generated
     */
    int insertSelective(WbVoucher record);

    /**
     * @mbg.generated
     */
    List<WbVoucher> selectByExample(WbVoucherExample example);

    /**
     * @mbg.generated
     */
    WbVoucher selectByPrimaryKey(Long id);

    /**
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") WbVoucher record, @Param("example") WbVoucherExample example);

    /**
     * @mbg.generated
     */
    int updateByExample(@Param("record") WbVoucher record, @Param("example") WbVoucherExample example);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(WbVoucher record);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKey(WbVoucher record);
}